<?php 
    
    /**
     * 测试服务层
     */
    class userConnectService extends Service{

        /**
         * 类似于构造方法的init方法
         */
        public function init(){
        }

        public function getConnects(){
            $userConnectDao = $this->userConnectDao;
            $userConnectDao->address = '小明';
            $userConnectDao->namddddd= 'dsds';
            //$res  = $userConnectDao->where("`id`>1 and address='朝阳'")->select();
            $res = $userConnectDao->where( array('id','between','1,2'), array('address','=','朝阳') )->select();
            $res = $userConnectDao->where( array('id','in','1,2,3') )->select();
            $stat = $userConnectDao->getLastQueryStat();
            P($stat);
            //$res = $userConnectDao->where( "id in (1,2,4)" )->select();
            P($res);
            //P($userConnectDao);
            //return $res;
        }
    }
?>